﻿<Window x:Class="UntanglerApp.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Untangler" Height="720" Width="1280" AllowDrop="True" Drop="WindowFileDrop"
        Icon="AppIcon.ico">
    
    <Window.Resources>
        <Style x:Key="ClassBox" TargetType="{x:Type Label}">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="FontFamily" Value="Segoe UI"/>
            <Setter Property="FontSize" Value="24"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Label">
                        <Grid>
                            <Rectangle Fill="#0a54bd" Stroke="#236cca"/>
                            <Grid Margin="20 10">
                                <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
                            </Grid>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="TreeLine" TargetType="{x:Type Line}">
            <Setter Property="StrokeEndLineCap" Value="Round"/>
            <Setter Property="StrokeLineJoin" Value="Round"/>
            <Setter Property="StrokeStartLineCap" Value="Round"/>
            <Setter Property="StrokeThickness" Value="2"/>
            <Setter Property="Stroke" Value="White"/>
        </Style>
        <Style x:Key="InterfaceLabel" TargetType="{x:Type Label}">
            <Setter Property="Foreground" Value="White"/>
        </Style>
        <Style x:Key="InterfaceCircle" TargetType="{x:Type Ellipse}">
            <Setter Property="StrokeThickness" Value="3"/>
            <Setter Property="Stroke" Value="White"/>
            <Setter Property="Width" Value="16"/>
            <Setter Property="Height" Value="16"/>
        </Style>
        <Style x:Key="InterfaceLine" TargetType="{x:Type Line}">
            <Setter Property="StrokeEndLineCap" Value="Round"/>
            <Setter Property="StrokeLineJoin" Value="Round"/>
            <Setter Property="StrokeStartLineCap" Value="Round"/>
            <Setter Property="StrokeThickness" Value="1"/>
            <Setter Property="Stroke" Value="White"/>
        </Style>
    </Window.Resources>
    
    <Window.CommandBindings>
        <CommandBinding Command="Open" Executed="CommandBindingOpenExecuted"/>
        <CommandBinding Command="Save" Executed="CommandBindingSaveExecuted"/>
    </Window.CommandBindings>
    <DockPanel>
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="_File">
                <MenuItem Header="_Open" Command="Open"/>
            </MenuItem>
            <MenuItem x:Name="assemblyPacksMenu" Header="_Assemblies" IsEnabled="false"/>
            <MenuItem Header="_Save Image" Command="Save"/>
        </Menu>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="200" MinWidth="200"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <TreeView Name="treeView1" SelectedItemChanged="TreeView1SelectedItemChanged" Background="LightGray" Padding="10" Grid.Column="0" />

            <GridSplitter HorizontalAlignment="Right" Width="4" Background="DarkGray"/>

            <Grid Background="#001940" Grid.Column="1">
                <ScrollViewer Name="scrollViewer1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" SnapsToDevicePixels="True">
                    <Grid Name="viewGrid" Margin="50" Background="#001940"/>
                </ScrollViewer>
            </Grid>
        </Grid>

    </DockPanel>
</Window>
